﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="QuizHackathon.ResultAnalysis"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:QuizHackathon"
    xmlns:common="using:QuizHackathon.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <UserControl.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </UserControl.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Text="{StaticResource AppName}" Style="{StaticResource PageHeaderTextStyle}"/>
        </Grid>
        <Grid Margin="0,200,0,0" x:Name="Grid_Result" Background="Black">
            <Rectangle Margin="100,100" Fill="White" Stroke="White" StrokeThickness="4" Width="200" Height="50"  ></Rectangle>
        </Grid>
        <Rectangle Fill="White" HorizontalAlignment="Left" Height="71" Margin="89,97,0,0" Grid.Row="1" Stroke="White" StrokeThickness="4" VerticalAlignment="Top" Width="328"/>
        <Rectangle Fill="White" HorizontalAlignment="Left" Height="71" Margin="89,200,0,0" Grid.Row="1" Stroke="White" StrokeThickness="4" VerticalAlignment="Top" Width="328"/>
        <Rectangle Fill="White" HorizontalAlignment="Left" Height="71" Margin="89,316,0,0" Grid.Row="1" Stroke="White" StrokeThickness="4" VerticalAlignment="Top" Width="328"/>
        <Grid Margin="267,131,0,0" >
        <TextBlock HorizontalAlignment="Left" Foreground="Blue" Text="Your Score in Math" TextWrapping="Wrap" VerticalAlignment="Top" Margin="-165,131,0,-160" d:LayoutOverrides="GridBox" Width="305" Height="38" FontSize="36"/>
        </Grid>
        <Button Content="Upload" HorizontalAlignment="Left" Margin="617,135,0,0" Grid.Row="1" VerticalAlignment="Top" Width="210" Height="93"/>
        <Line Fill="White" Stroke="White" StrokeThickness="5" HorizontalAlignment="Left" Height="211" Margin="584,271,0,0" Grid.Row="1" VerticalAlignment="Top" Width="100" X1="0" X2="0" Y1="250" />
        <Line Fill="White" Stroke="White" StrokeThickness="5" HorizontalAlignment="Left" Height="211" Margin="584,271,0,0" Grid.Row="1" VerticalAlignment="Top" Width="100" X1="-10" X2="100" Y1="220"  />
        <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup>
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!-- The back button and title have different styles when snapped -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:LayoutAwarePage>
